<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<table class="form-table">
	<tr>
		<th style="text-align:right">请求地址：</th>
		<td colspan="4" style="word-spacing: normal;word-break: break-word;">
			<input id="url" class="exui-textbox" style="width:100%" readonly/>
		</td>
		<td style="padding-left:10px">
			<a class="exui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="send()">发送</a>
		</td>
	</tr>
	<tr>
		<th style="text-align:right">接口名称：</th>
		<td colspan="3">
			<input id="viewInterfaceName" class="exui-textbox" style="width:100%" readonly/>
		</td>
		<th style="text-align:right">接口描述：</th>
		<td>
			<input id="description" class="exui-textbox" style="width:90%" readonly/>
		</td>
	</tr>
	<tr>
		<th style="text-align:right">请求方法：</th>
		<td id="requestMethod"></td>
		<th style="text-align:right">数据类型：</th>
		<td id="dataType"></td>
		<th style="text-align:right">响应类型：</th>
		<td id="contentType"></td>
	</tr>
	<tr>
		<th valign="top" style="text-align:right">请求参数：</th>
		<td style="padding-top:10px;" colspan="5"><table id="paramsDg" class="exui-datagrid" style="width:670px;min-height:80px;"></table></td>
	</tr>
	<tr>
		<th valign="top" style="text-align:right">请求头：</th>
		<td style="padding-top:10px;" colspan="5"><table id="headerDg" class="exui-datagrid" style="width:670px;min-height:80px;"></table></td>
	</tr>
	<tr>
		<th valign="top" style="text-align:right">断言：</th>
		<td style="padding-top:10px;" colspan="5">
			<table id="assertTree" style="width:670px;min-height:80px;">
				<tr>
					<td colspan="3">
						<textarea rows="4" cols="6" style="width:670px;height: 200px;resize:none;border: 1px solid #d6cece;"  readonly="readonly" id="validExpressIn"></textarea>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<th style="text-align:right">执行成功次数：</th>
		<td id="execSuccessCnt"></td>
		<th style="text-align:right">执行失败次数：</th>
		<td id="execFailCnt"></td>
		<th style="text-align:right">编写人：</th>
		<td id="authorName"></td>
	</tr>
	<tr>
		<th valign="top" style="text-align:right">响应：</th>
		<td colspan="5"><pre id="respResult" style="width:670px"></pre></td>
	</tr>
</table>
<!-- <div id="viewFoot" align="right">
	<a class="exui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="send()">发送</a>
</div> -->

<script src="<%=request.getContextPath()%>/itest/js/apiManager/interfaceManager/viewInterface.js" type="text/javascript" charset="utf-8"></script>